package zrz;

import ls.dao.CourseDAO;
import ls.dao.CourseTeacherDAO;
import ls.dao.EvaluateDAO;
import ls.dao.StudentDAO;
import ls.impl.CourseDAOImpl;
import ls.impl.CourseTeacherDAOImpl;
import ls.impl.EvaluateDAOImpl;
import ls.impl.StudentDAOImpl;

public class DAOFactory {
    private static DAOFactory daoFactory;
    static {
        daoFactory = new DAOFactory();
    }
    private DAOFactory(){

    }


    public static DAOFactory getInstance(){
        return daoFactory;
    }


    public PeopleDAO getPeopleDAO(){
        return new PeopleDAOImpl();
    }

    public StudentDAO getStudentDAO(){
        return new StudentDAOImpl();
    }
    public CourseDAO getCourseDAO()
    {
        return new CourseDAOImpl();
    }
    public EvaluateDAO getEvaluateDAO(){
        return new EvaluateDAOImpl();
    }
    public CourseTeacherDAO getCourseTeacherDAO(){return new CourseTeacherDAOImpl();
    }
}